<?php
include "../connectDB.php";
$fun = $_POST["function"];
if($fun == 'get_latlon'){get_latlon();}
function get_latlon(){
  $strSQL = "SELECT * FROM tbl_merchant";
  $objQuery = mysql_query($strSQL);
  while($row = mysql_fetch_assoc($objQuery)){
    $val[]=$row;
  }
  echo json_encode($val);
}
?>
